package com.ccys.db.entity;

import com.ccys.db.rely.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.math.BigDecimal;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
* Created by Mybatis Generator on 2023/12/27
*/
@Data
@ApiModel("问诊结算使用的银行卡命中了有效的BIN,做记录,三种不同类型的金额同一时间只会有一个有值")
@Table(name = "tbl_booking_bin_discount")
@NoArgsConstructor
@AllArgsConstructor
public class TblBookingBinDiscount extends BaseEntity {
    @Column(name = "booking_id")
    private String bookingId;

    @Column(name = "bin_id")
    private String binId;

    private String number;

    @Column(name = "discount_type")
    private Integer discountType;

    @Column(name = "discount_amount")
    private BigDecimal discountAmount;

    //整个账单抵扣的金额
    @Column(name = "bill_bin_total_discount_amount")
    private BigDecimal billBinTotalDiscountAmount;

    //问诊抵扣的金额
    @Column(name = "consultation_bin_total_discount_amount")
    private BigDecimal consultationBinTotalDiscountAmount;

    //快递费用抵扣的金额
    @Column(name = "delivery_bin_total_discount_amount")
    private BigDecimal deliveryBinTotalDiscountAmount;

    private Integer paid;

    @Column(name = "discount_off_service")
    private Integer discountOffService;

    @Column(name = "bin_discount_amount_service")
    private BigDecimal binDiscountAmountService;

    /**
     * 抵扣的服务费用，不能大于设定的金额上限
     */
    @Column(name = "service_bin_total_discount_amount")
    @ApiModelProperty("Todo 与上一个字段的区别？")
    private BigDecimal serviceBinTotalDiscountAmount;

    @Column(name = "discount_label")
    private String discountLabel;
}